.home {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  background-color: #fff7d1;
}

.note_list {
  background-color: #fff7d1;

  display: flex;
  flex-flow: column;
  overflow: hidden;
  height: calc(100vh - 30px);
  .top_box {
    padding-bottom: 8px;
    transition: all 0.5s;
    position: relative;
    z-index: 99;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }
  .app_title {
    font-size: 18px;
    line-height: 1;
    margin: 0;
    box-sizing: border-box;
    padding: 0 5px;
    margin-top: 10px;
  }
  .search_box {
    height: 30px;
    padding: 0 5px;
    box-sizing: border-box;
    margin-top: 10px;
    .input_box {
      height: 100%;
      box-sizing: border-box;
      display: flex;
      background: #eeeeee;
      border-radius: 3px;
      input {
        height: 100%;
        padding: 0;
        box-sizing: border-box;
        outline: none;
        flex: 1;
        background: #eeeeee;
        border: none;
        padding-left: 10px;
      }
      .seatch_btn {
        width: 30px;
        height: 30px;
        display: flex;
        box-sizing: border-box;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        &:hover {
          background-color: #ddd;
        }
        i {
          color: gray;
        }
      }
    }
  }
  .empty {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    font-size: 14px;
    margin-top: 50px;
  }
  .notes {
    box-sizing: border-box;
    padding: 5px;
    overflow: auto;
    flex: 1;
    margin-top: 5px;
    .note {
      border-radius: 5px;
      box-sizing: border-box;
      padding: 5px;
      cursor: pointer;
      background-color: #e2f1ff;
      margin-bottom: 10px;
      position: relative;

      .note_title {
        font-weight: bold;
        color: #333;
        max-width: 200px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
      }
      .note_content {
        font-size: 14px;
        margin-top: 5px;
        overflow: hidden;
        max-height: 60px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;
      }
      .bottom {
        display: flex;
        justify-content: space-between;
        .note_last_update_time {
          font-size: 11px;
          color: #999;
          margin-top: 10px;
        }
      }

      &:hover .option_btn {
        opacity: 1;
      }
      .option_btn {
        background-color: rgba(186, 186, 186, 0.3);
        transition: all 0.2s;
        opacity: 0;
        position: absolute;
        width: 30px;
        height: 30px;
        right: 0;
        top: 0;
        border-radius: 8px;
        display: flex;
        justify-content: center;
        align-items: center;
        &:hover {
          background-color: rgba(186, 186, 186, 0.8);
        }
        i {
          color: gray;
        }
      }
    }
    &::-webkit-scrollbar {
      cursor: default;
      width: 5px;
      height: 5px;
      transition: all 2s;
      cursor: default;
    }
    &::-webkit-scrollbar-thumb {
      background: rgb(197, 204, 211);
      border-radius: 5px;
      cursor: default;
    }
    &::-webkit-scrollbar-thumb:hover {
      background: rgb(151, 156, 161);
      cursor: default;
    }
    &::-webkit-scrollbar-track {
      cursor: default;
    }
  }
}
